package cn.endeavour.user.mapper;

import cn.endeavour.basic.mapper.BaseMapper;
import cn.endeavour.org.domain.Shop;
import cn.endeavour.user.domain.User;
import org.springframework.stereotype.Repository;

/**
 * 数据库操作接口
 */
@Repository
public interface UserMapper extends BaseMapper<User> {

    /**
     * 根据登录人Id查询用户
     * @param id
     * @return
     */
    User loadByLoginInfoId(Long id);

    /**
     * 通过电话号码来查找用户
     * @param phone
     * @return
     */
    User findByPhone(String phone);


}
